package com.stu_ques.question.pojo;

import java.io.Serializable;
import java.util.Date;

import com.stu_ques.common.util.DateUtil;

/**
 * 	创建一个问题表Pojo
 * 	问题表的属性:	id,名字,得分,回答总人数,创建时间,结束时间
 * */
public class Question implements Serializable
{
	private int id;
	private String name;
	/*	得分	*/
	private int score;
	/*	回答总人数	*/
	private int totalNumber;
	/*	创建时间	*/
	private Date creationTime;
	/*	更新时间	*/
	private Date updateTime;
	/*	生成读写器	*/
	public int getId()
	{
		return id;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public int getScore()
	{
		return score;
	}
	public void setScore(int score)
	{
		this.score = score;
	}
	public int getTotalNumber()
	{
		return totalNumber;
	}
	public void setTotalNumber(int totalNumber)
	{
		this.totalNumber = totalNumber;
	}
	public Date getCreationTime()
	{
		return creationTime;
	}
	public void setCreationTime(Date creationTime)
	{
		this.creationTime = creationTime;
	}
	public Date getUpdateTime()
	{
		return updateTime;
	}
	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}
	@Override
	public String toString()
	{
		DateUtil dateUtil = new DateUtil();
		String str = this.getId()+"\t"+this.getName()+"\t"+this.getScore()+"\t"+this.getTotalNumber()+"\t"+
				dateUtil.dateTimeString(this.getCreationTime())+"\t"+dateUtil.dateTimeString(this.getUpdateTime());
		return /*"Question [id=" + id + ", name=" + name + ", score=" + score + ", totalNumber=" + totalNumber
				+ ", creationTime=" + creationTime + ", updateTime=" + updateTime + "]"*/str;
	}
	
}
